Pls Help me
#1

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?
Reply
#2

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
Reply
#3

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

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

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

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.
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)