Scrapcar cmd
#1

How can I make a /scrapcar command so the player drives the vehicle to the checkpoint and gets a random amount of materials through 100-200

INFO: With Vortex RP OLD script
Reply
#2

Something like this: https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint

Next time search before posting please.
Reply
#3

I know the forums rules, I searched, so please dont tell me to search before posting.
Reply
#4

Um then how the hell I found it? Searching FTW.

Also: https://sampforum.blast.hk/showthread.php?tid=119389

Woot exact title, you haven't searched for god sake.
Reply
#5

Uhm I have searched, thats for STRCMP or w/e, I need it for Zcmd(VortexRP)

EDIT: If your going to help with an attitude then dont help at all, thanks.
Reply
#6

I don't know how vortexRP looks like so you'll probably need to adjust some of this to work with it. This is just a small example and you can probably do a more efficient way of doing it.

Код:
//--------------------[/SCRAPCAR]----------------------------------------------
CMD:scrapcar(playerid, params[])
{
new string[128];
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not inside a vehicle.");
else if(!IsPlayerInRangeOfPoint(playerid, DEFINE LOCATION CO-ORDINATES HERE!!!!)) return SendClientMessage(playerid, COLOR_WHITE, "You are not at the scrap car location.");
else{
PlayerInfo[playerid][pMaterials] + DEFINE AMOUNT HERE;
SendClientMessage(playerid, COLOR_WHITE, "You have chopped your car up and received DEFINE AMOUNT HERE materials.");
} // End Else Statement
return 1;
} // Close Command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)