25.12.2013, 14:23
here you go, copy & paste style >.>
i'd suggest you checkout that site: https://sampwiki.blast.hk/wiki/Control_Structures
PHP код:
if (strcmp("/loadiron", cmdtext,true,10) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid,2.0,-2454.5771,2254.1755,4.9802)) return SendClientMessage(playerid,COLOR_RED,"You are not at the warehouse!");
PlayerInfo[playerid][pIron]++;
PlayerInfo[playerid][pIron]++;
PlayerInfo[playerid][pIron]++;
PlayerInfo[playerid][pIron]++;
PlayerInfo[playerid][pIron]++;
SendClientMessage(playerid,COLOR_PURPLE,"You Have Loaded In 5 Pieces of Iron!");
return 1;
}