SA-MP Forums Archive
Pls Help me - 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: Pls Help me (/showthread.php?tid=65481)



Pls Help me - graffyk - 13.02.2009

Hello i made a command for my GM here it is:

[code=pawno] if(strcmp(cmdtext,"/nrg",true) == 0)
{

new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateVehicle(522,X,Y+3,Z+2,5,70,0,90000);
SendClientMessage(playerid, COLOR_GREEN, "** A free NRG for you ");
return 1;
}[/code]
I what to make after 5 min to delete the bike and send a mesage "Spam rulls:Type again /nrg for another bike" ,but i dont know how to do that can someone help me pls?


Re: Pls Help me - Think - 13.02.2009

Quote:
Originally Posted by graffyk
Hello i made a command for my GM here it is:

[code=pawno] if(strcmp(cmdtext,"/nrg",true) == 0)
{

new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateVehicle(522,X,Y+3,Z+2,5,70,0,90000);
SendClientMessage(playerid, COLOR_GREEN, "** A free NRG for you ");
return 1;
}[/code]
I what to make after 5 min to delete the bike and send a mesage "Spam rulls:Type again /nrg for another bike" ,but i dont know how to do that can someone help me pls?
https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/DestroyVehicle
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID


Re: Pls Help me - graffyk - 13.02.2009

Can someone give me a example i learn faster than reading on wiki


Re: Pls Help me - MenaceX^ - 13.02.2009

CreateVehicle(522,X,Y+3,Z+2,5,70,0,-1);


Re: Pls Help me - Daren_Jacobson - 13.02.2009

you can make it so that 5 mins of no-one being on it it will respawn using the last param of CreateVehicle.


Re: Pls Help me - Grove - 13.02.2009

Quote:
Originally Posted by MenaceX^
CreateVehicle(522,X,Y+3,Z+2,5,70,0,-1);
That will set the vehicle to never respawn, unless it dies.


Quote:
Originally Posted by Daren_Jacobson
you can make it so that 5 mins of no-one being on it it will respawn using the last param of CreateVehicle.
He isn't asking for that, he wants it to destroy after five minutes.



Try reading: https://sampwiki.blast.hk/wiki/SetTimerEx
There is a good example on that page.


Re: Pls Help me - graffyk - 13.02.2009

Quote:
Originally Posted by Jay_
Quote:
Originally Posted by MenaceX^
CreateVehicle(522,X,Y+3,Z+2,5,70,0,-1);
That will set the vehicle to never respawn, unless it dies.


Quote:
Originally Posted by Daren_Jacobson
you can make it so that 5 mins of no-one being on it it will respawn using the last param of CreateVehicle.
He isn't asking for that, he wants it to destroy after five minutes.



Try reading: https://sampwiki.blast.hk/wiki/SetTimerEx
There is a good example on that page.
Yes that is what i wants i will read that am i will try to get it done