29.06.2015, 13:11
Correct?
#edit
It is showing errors, and it is not functional ..
PHP код:
if (strcmp(cmd, "/criarpickup", true) == 0)
{
new model, Float: x, Float: y, Float: z;
for (new i; i < MAX_PLAYERS; i++)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
model = cmdtext;
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) SendClientMessage(playerid, -1, "USE: /criarpickup [model]");
else
{
GetPlayerPos(playerid, x, y, z);
CreatePickup(model, 1, x, y, z, -1);
}
}
else return 0;
}
return 1;
}
It is showing errors, and it is not functional ..