28.05.2009, 10:15
like /exit need it because i most of the time stuck in a car who can help me?
else if (streq(cmd,"/exit")) {
new text[256];
RemovePlayerFromVehicle(playerid);
format(text,sizeof text,"You exited from your vehicle!");
SendClientMessagel(playerid,COLOR_COLOR);
return 1;
}
if(strcmp(cmdtext, "/exit", true) == 0) { RemovePlayerFromVehicle(playerid); }
Originally Posted by Jakku
pawn Код:
|
if(!strcmp(cmdtext,"/exit",true)){
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "You aren't in a vehicle!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, true); // if frozen
return SendClientMessage(playerid, 0xFFFFFFAA, "Your Text");
}