21.10.2010, 20:28
Cool
I fixed the commands
I fixed the commands
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/Launch", cmdtext, true) == 0) //here
{
new Float: ics,
Float: ipsi,
Float: zeta;
for(new z; z < MAX_OBJRAZZO; z++)
{
GetObjectPos(ObjRazzo[z],ics,ipsi,zeta);
MoveObject(ObjRazzo[z],ics,ipsi,zeta+1000,80);
}
return 1;
}
if(strcmp("/ReloadLaunch", cmdtext, true) == 0) //here
{
for(new z; z < MAX_OBJRAZZO; z++)
{
DestroyObject(ObjRazzo[z]);
}
CreateObjects();
return 1;
}
return 0; //here
}