05.01.2014, 16:12
Hey guys i want to make send position command so that it sends my current position to another player in a checkpoint
and the command will be like this
/sendpos [ custompos / mypos ]
U will understand when you read this
Please Complete This Code --- I'm Beginner ---
and the command will be like this
/sendpos [ custompos / mypos ]
U will understand when you read this
Код:
CMD:sendpos(playerid, params[])
{
new Float:x, Float:y, Float:z;
new string[128];
new int:sendto;
if(PlayerInfo[playerid][pAdmin] > 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(sscanf(params, "s[32]", params))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sendpos [option]");
SendClientMessage(playerid, COLOR_GREY, "OPTIONS: mypos | custompos");
return 1;
}
if(!strcmp(params, "mypos", true, 8))
{
//Give me code so that when i type '/sendpos mypos [playerid]' It Works
}
else if(!strcmp(params, "custompos", true, 5))
{
//Give me code so that when i type '/sendpos custompos [playerid] [x] [y] [z]' It Works
}
return 1;
}

