14.05.2011, 01:36
Top
Aqui
pawn Код:
new Float:Posicoes[MAX_PLAYERS][5];
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sp", cmdtext, true, 3) == 0)
{
if(!IsPlayerAdmin(playerid))
{
return SendClientMessage(playerid,0xffffff,"Seu Inъtil! Vocк Purum Acauso й Dimin lugado na errecom ???");
}
Posicoes[playerid][3] = GetPlayerInterior(playerid);
Posicoes[playerid][4] = GetPlayerVirtualWorld(playerid);
GetPlayerPos(playerid,Posicoes[playerid][0],Posicoes[playerid][1],Posicoes[playerid][2]);
SendClientMessage(playerid,0xffffff,"Salvado com sucesso");
return 1;
}
if (strcmp("/ip", cmdtext, true, 3) == 0)
{
if(!IsPlayerAdmin(playerid))
{
return SendClientMessage(playerid,0xffffff,"Seu Inъtil! Vocк Purum Acauso й Dimin lugado na errecom ???");
}
SetPlayerPos(playerid,Posicoes[playerid][0],Posicoes[playerid][1],Posicoes[playerid][2]);
SetPlayerInterior(playerid, Posicoes[playerid][3]);
SetPlayerVirtualWorld(playerid, Posicoes[playerid][4]);
SendClientMessage(playerid,0xffffff,"Foi com sucesso");
return 1;
}
return 0;
}