08.07.2012, 16:43
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/duty", cmdtext, true, 10) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 258.7297,80.1776,1003.6406))
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
}
if (strcmp("/copautomat", cmdtext, true, 10) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 255.2583,73.7139,1003.6406))
GivePlayerWeapon(playerid, 31, 300);
// Do something here
return 1;
}
return 0;
}