stock PlayerName(playerid) { new PlrName[MAX_PLAYER_NAME]; GetPlayerName(playerid,PlrName,sizeof(PlrName)); return PlrName; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) { new VehicleID = GetPlayerVehicleID(playerid); if(VehicleID == xxannajpxx) { if(strcmp(PlayerName(playerid), "Anna_Cortez", true) != 0) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "You dare touch The car of Anna_Cortez? PERISH IN HELL!!! "); SendClientMessage(playerid, COLOR_RED, "Nucleur Warheads provided by U.S. have been automatically targeted at your head"); SetTimer("dday", 6000, false); } } } return 1; } public dday(playerid) { { { new Float, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); CreateExplosion(x, y, z, 0, 1.0); SetPlayerHealth(playerid, 0); } } return 1; } |
if(strcmp(PlayerName(playerid), "Anna_Cortez", true) == 0)
new drivername[MAX_PLAYER_NAME]; GetPlayerName(playerid,drivername,sizeof(drivername)); if(!strcmp(drivername, "Anna_Cortez", true)) return 1; RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "You dare touch The car of Anna_Cortez? PERISH IN HELL!!! "); SendClientMessage(playerid, COLOR_RED, "Nucleur Warheads provided by U.S. have been automatically targeted at your head"); SetTimerEx("dday", 6000, false,"d",playerid);