29.11.2012, 00:17
Tenta:
pawn Код:
if(strcmp(cmdtext, "/drop", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,2077.6475, -606.2309, 365.9417);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi descer o drop {FF0000}( /DROP )", pname);
SendClientMessageToAll(0x00FF00FF, string);
SetPlayerInterior(playerid,0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
else{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi descer o drop {FF0000}( /DROP )", pname);
SendClientMessageToAll(0xFF00FFFF, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2077.6475, -606.2309, 365.9417);
SetPlayerFacingAngle(playerid,190.9207);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
return 1;
}