22.10.2012, 20:51
Hello
I have made my cmd: /armour
The point is, when you step on armour PickUp and tipe /armour, you get 100 amour.
But I have made if player is in range of point, but it doesnt work, I dont know why.
Here are the codes:
It doesnt work that way so I tried:
But it doesnt work again. I dont know why, please help.
Compiling this scritps works, everything is fine but when I tipe /armour anywhere ingame I get armour 100.
Thank you.
I have made my cmd: /armour
The point is, when you step on armour PickUp and tipe /armour, you get 100 amour.
But I have made if player is in range of point, but it doesnt work, I dont know why.
Here are the codes:
Код:
if (strcmp("/armour", cmdtext, true, 10) == 0) { IsPlayerInRangeOfPoint(playerid,2, -2167.3972,3306.8318,95.5800); SendClientMessage(playerid, COLOR_ORANGE, "Armour PickUP"); SetPlayerArmour(playerid,100); }
Код:
if (strcmp("/armour", cmdtext, true, 10) == 0) { IsPlayerInRangeOfPoint(playerid,2, -2167.3972,3306.8318,95.5800); return SendClientMessage(playerid, COLOR_ORANGE, "You have to be at armour PickUp"); SendClientMessage(playerid, COLOR_ORANGE, "Armour PickUP"); SetPlayerArmour(playerid,100); return 1; }
Compiling this scritps works, everything is fine but when I tipe /armour anywhere ingame I get armour 100.
Thank you.