12.08.2011, 19:16
qeria um comando /irest e as coordenadas tao aki xD
x-736,41
y - 502,3898
z - 1371,977
x-736,41
y - 502,3898
z - 1371,977
AddPlayerClass(ID, CORX,CORY,CORZ,ANGULO,ARMA,BALA,ARMA,BALA,ARMA,BALA);
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;
if (strcmp("/irest", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 736.41,502.3898,1371.977);
SendClientMessage(playerid, -1, "Vocк veio atй o estacionamento!''");
new string[64];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "[SERVIDOR]: %s foi para o estacionamento.", pName);
SendClientMessageToAll(0x008000AA, string);
return 1;
}
if(strcmp(cmdtext,"/irest",true)==0)
{
SetPlayerPos(playerid,736.41,502.3898,1371.977);
SendClientMessage(playerid,-1,"Voce foi atй o /irest");
return true;
}