15.08.2012, 11:47
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
//----------------------------
if (strcmp("/abrirvip", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey2] == 0) return SendClientMessage(playerid, -1, "Vocк nгo й VIP");
{
MoveObject(Portao, 1548.181,-2296.253,9.544, 5.0);
SendClientMessage(playerid, COLOR_GREEN, "Portгo do Estacionamento Vip Aberto");
return 1;
}
}
//================================================== ================================================== ===============
if (strcmp("/fecharvip", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey2] == 0) return SendClientMessage(playerid, -1, "Vocк nгo й VIP");
{
MoveObject(Portao, 1547.677,-2296.252,15.544, 5.0);
SendClientMessage(playerid, COLOR_RED, "Portгo do Estacionamento Vip Fechado");
return 1;
}
}
return 0;
}