31.08.2011, 01:16
Your ****ing with me right?
Intead of typing a command and it matching 3 it match's one and does the same thing
Get it?
To try what gameover said do that to that to ^
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/up", true) == 0)
{
MoveObject(ufo, 268.65, 1883.09, 774.00, 3);
MoveObject(ufo1, 268.65, 1883.09, 774.00, 3);
MoveObject(ufo2, 268.7174, 1883.0188, 832.4000, 3);
SendClientMessage(playerid, 0xDEEE20FF, "To the moon!");
return 1;
}
if (strcmp(cmdtext, "/down", true) == 0)
{
MoveObject(ufo, 268.6500, 1883.0900, -35.0000, 5);
MoveObject(ufo1, 268.6500, 1883.0900, -2.9000, 5);
MoveObject(ufo2, 268.7200, 1883.0200, 23.5000, 5);
SendClientMessage(playerid, 0xDEEE20FF, "Back to Earth!");
return 1;
}
return 0;
}
Get it?
To try what gameover said do that to that to ^