30.04.2010, 12:34
Or you can make a command like /createcp [radius]
pawn Код:
dcmd(createcp,8,cmdtext);
dcmd_createcp(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid,0xFFFFFFAA,"USE: /createcp [radius]");
DisablePlayerRaceCheckpoint(playerid);
new Float:radius,Float:x,Float:y,Float:z;
radius = floatstr(params);
GetPlayerPos(playerid,x,y,z);
SetPlayerRaceCheckpoint(playerid,2,x,y,z,x,y,z,radius);
SendClientMessage(playerid,0xFFFFFFAA,"CheckPoint Created!");
return 1;
}