Posts: 16
Threads: 2
Joined: Jun 2011
Reputation:
0
if (strcmp("/gearme", cmdtext, true, 10) == 0)
{
GameTextForPlayer(playerid, "Cheat found! Multiple weapons and full armour given.", 5000, 4);
GivePlayerWeapon(playerid, 24, 700);
GivePlayerWeapon(playerid, 31, 1400);
SetPlayerArmour(playerid, 100);
return 1;
}
For instance, after a player types /gearme, he/she can't use this command again unless they respawn/die.
(It's to keep people from entering /gearme over and over and over again.)
Posts: 16
Threads: 2
Joined: Jun 2011
Reputation:
0
Thanks a lot! I'll give it a go tomorrow, but I have to catch a few zzz's before work.
Thanks again, I really appreciate it.
(I'm new to this also.)
Posts: 16
Threads: 2
Joined: Jun 2011
Reputation:
0
Ah, yeah, thanks for that Linux.
As I said, I'll give it a go tomorrow.
I appreciate it very much so.
Posts: 16
Threads: 2
Joined: Jun 2011
Reputation:
0
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(133) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(150) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(207) : warning 211: possibly unintended assignment
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(207) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(211) : warning 211: possibly unintended assignment
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(211) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(217) : error 033: array must be indexed (variable "gearme")
Couldn't help myself, but going to bed now.
Posts: 16
Threads: 2
Joined: Jun 2011
Reputation:
0
Looks like it worked, man. Thanks a lot.
Posts: 16
Threads: 2
Joined: Jun 2011
Reputation:
0
@iPLEOMAX
Code worked, however when I enter /gearme it says unknown command.
It's weird though, because it still works. Like I get the guns and everything.