26.12.2012, 18:32
Quote:
/t88ta ?
/t88ta <playerid> ? i cant really understand. what is t88ta ? o.O |
PHP код:
CMD:kontrolliv88d(playerid, params[])
{
new otherId;
if(sscanf(params, "u", otherId)) return SendClientMessage(playerid, COLOR_GREY, "KASUTUS: /kontrollivццd [MдngijaID]");
if(otherId == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Mдngijat ei ole serveris");
if(GetPlayerState(otherId) == PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,COLOR_GREY,"See mдngija ei istu ьldse autos.");
if(IsACop(playerid))
{
if(ProxDetectorS(9.0, playerid, otherId))
{
new silo[86];
if(KasutajaInfo[otherId][pSeatbelt]== 0)
{
silo = "lahti";
}
else if(KasutajaInfo[otherId][pSeatbelt] == 1)
{
silo = "kinni";
}
SFM(playerid, COLOR_GREY, "%s turvavцц on %s.", Nimi(otherId), silo);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "See mдngija ei ole su juures!");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY, "Sa ei ole Politseinik!");
}
return 1;
}