21.03.2011, 23:19
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate)
{
if (newstate == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(playerid);
if(vid==Luciano[0]||vid==Luciano[1]||vid==Luciano[2]||vid==Luciano[3]||vid==Luciano[4]
||vid==Luciano[5]||vid==Luciano[6]||vid==Luciano[7]||vid==Luciano[8]||vid==Luciano[9]
||vid==Luciano[10]||vid==Luciano[11]||vid==Luciano[12]||vid==Luciano[13]||vid==Luciano[14]
||vid==Luciano[15]||vid==Luciano[16]||vid==Luciano[17])
{
static sName[11];
GetPlayerName(playerid,sName,11);
if(!strcmp(sName,"Luciano_Jr",true))
{
return 1;
}
else
{
SendClientMessage (playerid,0xFF0000FF,"Vocк nгo й o Luciano_Jr!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
return 1;
}
return 1;
}
return 1;
}