02.10.2011, 17:12
(
Последний раз редактировалось ViniBorn; 02.10.2011 в 22:00.
)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/hqadmin", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if PlayerInfo[playerid][pAdmin] >= 1)
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
return MSGPLAYER(playerid, COLOR_YELLOW, "Vocк nгo estб trabalhando! (/pa)");
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 229.359,-1807.635,4.141); LinkVehicleToInterior(tmpcar, 0);
}
else
{
SetPlayerPos(playerid, 229.359,-1807.635,4.141);
SetPlayerFacingAngle(playerid, 90);
SendClientMessage(playerid, COLOR_GREEN, "Bem Vindo");
return 1;
}
}
}
return 0;
}