SA-MP Forums Archive
problem with script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with script (/showthread.php?tid=175624)



problem with script - farris - 10.09.2010

ok i posted a request to fix this a long time ago no one ever helped so im going to request a fix again.
and to al the other muslims like me happy
Quote:

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", 10000, 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;
}

its explodes and kills id 0 not the person getting in car


Re: problem with script - MadeMan - 10.09.2010

pawn Код:
SetTimerEx("dday", 10000, false, "d", playerid);



Re: problem with script - Jeffry - 10.09.2010

Change:
pawn Код:
SetTimer("dday", 10000, false);
To:
pawn Код:
SetTimerEx("dday", 10000, false, "d", playerid);

EDIT: MadeMan was faster. :/


Re: problem with script - farris - 10.09.2010

thanks gonna test ASAP when a friend gets on so i can ginny pig him


Re: problem with script - Mimic - 10.09.2010

Also don't forget to use [.pawn][./pawn] or [.code][./code] instead of [.quote][./quote] Don't use the " . " they are just there so they don't disappear