09.03.2012, 17:06
Here:
i put this..
PHP код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
new pName[24];
GetPlayerName(playerid, pName, 24);
if(PlayerInfo[playerid][pSeatBelt] == 1)
{
PlayerInfo[playerid][pSeatBelt] = 0;
new stringtosee[255];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new ftext[255];
if(PlayerInfo[playerid][pSex] == 1)
{
ftext = "his";
}
else if(PlayerInfo[playerid][pSex] == 1)
{
ftext = "her";
}
format(stringtosee, sizeof(stringtosee), "* %s unbuckles %s seat belt", sendername , ftext);
ProxDetector(30.0, playerid, stringtosee, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
return 1;
}
return 1;
}
PHP код:
forward IsACopCar(carid);
PHP код:
public IsACopCar(carid)
{
for(new i = 0; i < sizeof(copcar); i++)
{
if(carid == copcar[i]) return 1;
}
return 0;
}