08.08.2011, 00:44
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
if(ConCinto[playerid] == 0)
SendClientMessage(playerid, COR_BRANCO, " Vocк esta sem o cinto e esta desprotegido, use /cinto para colocar ");
}
if(pInfo[playerid][lCarro] == 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new nivelprocura;
SendClientMessage(playerid, COR_VERMELHOCLARO, "Vocк nгo tкm licenзa para Dirigir, compre uma na Prefeitura ou use /servico taxi.");
SetPlayerWantedLevel(playerid, nivelprocura + 1);
return 1;
}
new carrofail = GetPlayerVehicleID(playerid);
if(CarroDosGroove(carrofail))
{
if(djTeam[playerid] == Groove){ }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COR_GROOVE, "Vocк nгo й Groove!"); }
}
else if(CarroDosPCC(carrofail))
{
if(djTeam[playerid] == PCC){ }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COR_PCC, "Vocк nгo й um PCC!"); }
}
else if(CarroDosAzteca(carrofail))
{
if(djTeam[playerid] == Aztecas){ }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COR_AZTECA, "Vocк nгo й um Azteca!"); }
}
else if(CarroDosBallas(carrofail))
{
if(djTeam[playerid] == Ballas){ }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COR_BALLAS, "Vocк nгo й um Ballas!"); }
}
else if(CarroDosVagos(carrofail))
{
if(djTeam[playerid] == Vagos){ }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COR_VAGOS, "Vocк nгo й um Los Santos Vagos!"); }
}
else if(CarroDosPolicia(carrofail))
{
if(djTeam[playerid] == Policia){ }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COR_POLICIA, "Vocк nгo й um Policial!");
}
}
return 0x01;
}