command help - 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: command help (
/showthread.php?tid=116746)
command help -
sggassasin - 30.12.2009
hi there i need the code so i can go ... /makecase 34239 thats all i need to know could someone plz help
Re: command help -
MerLow - 30.12.2009
I don't understood, give us more information.
Re: command help -
sggassasin - 30.12.2009
well here this is my command
if (strcmp(cmd, "/admincase", true) ==0 )
{
if(PlayerInfo[playerid][Admin] == 5)
{
tmp = strtok(cmdtext, idx);
if(casemoney < 10000)
{
SendClientMessage(playerid, COLOR_GRAD1, "You Have To Make The Case Higher Then $10,000");
}
if(casemoney > 100000000)
{
SendClientMessage(playerid, COLOR_GRAD1, "You Have To Make The Case Lower Then $100,000,000");
}
else
{
casedrop[playerid] = 1;
format(string, sizeof(string), "You Have Made A admin case Worth $%d", casemoney);
SendClientMessage(playerid, 0x00C2ECFF, string);
format(string, sizeof(string), "An Admin Case Hase Been Made And $%d Is In It Go Find It", casemoney);
SendClientMessageToAll(0x00C2ECFF, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You Are Not A Level 5 Admin");
}
return 1;
}
i need it to produce a number above 10000 and the other 1 but i dont know how to so could you help me out thx
Re: command help -
MerLow - 30.12.2009
If I understood, replace all
casemoney with
strval(tmp).