19.10.2017, 17:50
I'm working on a Dynamic Organisation System, and i just need to show me directions. This is the code,
This piece of code works, it creates the Checkpoint, Pickup and the Label. But, how am i supposed to save these informations? So when the server restarts they're still there?
PHP код:
CMD:createorg(playerid,params[])
{
new Float:x, Float:y, Float:z, name[24];
if(sscanf(params,"s[24]",name)) return SendClientMessage(playerid,COLOR2,"USAGE: /createorg [NAME]");
GetPlayerPos(playerid,x,y,z);
Orgs++;
CreatePickup(1221,2,x,y,z,0);
CreateDynamicCP(x,y,z, 3.0, 0, 0, 0,STREAMER_CP_SD, -1, 0);
Create3DTextLabel(name, 0x6495ED, x,y,z, 40.0, 0, 0);
return 1;
}