11.07.2011, 01:04
PHP код:
if(!strcmp(cmdtext, "/cinto", true))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_YELLOW,"[BML] Vocк nгo estб em um veнculo.");
if(CintoPlayer[playerid] == 0))
{
CintoPlayer[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_YELLOW,"[BML] Parabйns Vocк esta de Cinto, Agora Esta Protegido (/tirarcinto)");
format(string, sizeof(string), "%s coloca o cinto de seguranзa.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
CintoPlayer[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_YELLOW,"[BML] Cuidado Vocк Esta Sem Cinto, Pode Morrer (/cinto)");
format(string, sizeof(string), "%s retira o cinto de seguranзa.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return true;
}