can u write the codes in script plz
or give me full code for flip command
or give me full code for flip command
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteD:\VCMPSE~1\MYSERV~1\GAMEMO~1\GUPS11~1.PWN(1713) : error 001: expected token: ";", but found "if"
D:\VCMPSE~1\MYSERV~1\GAMEMO~1\GUPS11~1.PWN(1713) : error 029: invalid expression, assumed zero
Quoteelse if (strcmp(cmd, "!flip", true) == 0) {
new Float:x, Float:y, Float:z;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SendClientMessage(playerid, COLOR_GREEN, "Vehicle Flipped!");
return 1;
}
Quote}
else if (strcmp(cmd, "!wep", true) == 0) {
new tmp2[256], wep;
tmp = strtok(cmdtext, idx), tmp2 = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if (!strlen(tmp2)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: !wep [WeaponName/ID] ammo");
else {
wep = FindWepIDFromString(tmp);
SetPlayerWeapon(playerid,wep,strval(tmp2));
}
return 1;
}