12.08.2011, 19:19
pawn Код:
if(strcmp(cmdtext, "/irest", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
GameTextForPlayer(playerid,"~w~Bem vindo a Estacionamento!", 2673, 10);
SetVehiclePos(VehicleID,736.41,502.3898,1371.977);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
new string[80];
format(string, sizeof(string), "[TELEPORTE]*** %s Foi Para Estacionamento | Comando: /IREST", pname);
SendClientMessageToAll(0x0000BBAA, string);
SetPlayerInterior(playerid,0);
}else{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,736.41,502.3898,1371.977);
new string[80];
format(string, sizeof(string), "[TELEPORTE]*** %s Foi Para Estacionamento | Comando: /IREST", pname);
SendClientMessageToAll(0x0000BBAA, string);
}
PlayerPlaySound(playerid, 1133, 257.6206, -41.5307, 1002.0234);
return 1;