17.12.2011, 17:34
Meols DEOS,
nгo acredito que o cara vai colocar uma plugin sу para um comando!
Tente amigo:
Ou
nгo acredito que o cara vai colocar uma plugin sу para um comando!
Tente amigo:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/tirarhosp", true, 9))
{
// if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(!cmdtext[11])
return SendClientMessage(playerid, -1,"/tirarHosp <id>");
static Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(strval(cmdtext[11]), pos[0], pos[1], pos[2]);
SendClientMessage(strval(cmdtext[11]), -1, "Vocк foi retirado do hospital!");
SendClientMessage(playerid, -1, "Vocк retirou alguйm do hospital com sucesso!");
return 1;
}
}
return 0;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/tirarhosp", true, 9))
{
// if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(!cmdtext[11])
return SendClientMessage(playerid, -1,"/tirarHosp <id>");
CallLocalFunction("sairhosp", "i", strval(cmdtext[11]));
return 1;
}
}
return 0;
}