26.10.2012, 10:22
Quote:
como eu crio o comando de /trazerx1 (todos) e em qual parte do gm eu boto porfavor ajuda
|
pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
pawn Код:
if(strcmp(cmd, "/trazerx1", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
new Float:pXX, Float:pYY, Float:pZZ;
GetPlayerPos(playerid,pXX,pYY,pZZ);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerPos(i, pXX, pYY, pZZ);
SetPlayerInterior(i, GetPlayerInterior(playerid));
SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(playerid));
GivePlayerWeapon(i, 24, 999);
GivePlayerWeapon(i, 25, 999);
GivePlayerWeapon(i, 29, 999);
GivePlayerWeapon(i, 30, 999);
SendClientMessage(i, COLOR_GRAD1, "Vocк foi teleportado");
}
}
}
}
return true;
}