hi im new to scripting and i need help
#1

hi im new to this im picking it up quite fast if you could please show me how to make an /arrest command i could make all the others thx it just a standard script nothing special besides the strok[/language lol i did this lmao
public OnPlayerCommmandText(playerid, cmdtext[])

if(strcmp("/Heal", cmdtext, true, 10) == TEAM_MEDIC)

{
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,1000); // THis is for the payment
return 1;
}

if(strcmp("/arrest", cmdtext, true, 10) == TEAM_COP)
{
SendClientMessage(playerid,COLOR_ORANGE,"You Have Been Arrested");
SetPlayerPos(playerid,198.0301, 161.8855, 1003.0234);
GivePlayerMoney(playerid,5000); // THis is for the payment
return 1;
}
else if(strcmp("/ticket", cmdtext, true, 10) == TEAM_COP)
{
SendClientMessage(playerid,COLOR_YELLOW,"You Have Been given a ticket type /pay or be arrested");
GivePlayerMoney(playerid,500); // THis is for the payment
return 1;
}
return 0;
}
as you could imagine yeah lmao no where near that was just a guestimate i only started scripting yesterday so id say not 2 bad of an attempt
Reply


Messages In This Thread
hi im new to scripting and i need help - by madmatty - 21.06.2009, 10:34
Re: hi im new to scripting and i need help - by mamorunl - 21.06.2009, 11:52
Re: hi im new to scripting and i need help - by madmatty - 21.06.2009, 12:10
Re: hi im new to scripting and i need help - by madmatty - 21.06.2009, 12:38
Re: hi im new to scripting and i need help - by Correlli - 21.06.2009, 13:04
Re: hi im new to scripting and i need help - by madmatty - 21.06.2009, 14:15
Re: hi im new to scripting and i need help - by Correlli - 21.06.2009, 14:37
Re: hi im new to scripting and i need help - by madmatty - 21.06.2009, 14:45
Re: hi im new to scripting and i need help - by madmatty - 21.06.2009, 14:58
Re: hi im new to scripting and i need help - by MadeMan - 21.06.2009, 15:39

Forum Jump:


Users browsing this thread: 2 Guest(s)