new pName[MAX_PLAYER_NAME];
#4

PHP код:
CMD:get(playerid,params[]) {
    new
        
id,
        
plname[MAX_PLAYER_NAME],
        
idname[MAX_PLAYER_NAME];
    if ( 
GetPVarIntplayerid"Level" ) == )return SendClientMessage(playerid0xFF0000FF"Only admin 1-3 can use this command!!");
    if(
sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_YELLOW,"Correct Usage:/get [ID]");
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"Player ID Doesn't Exist");
    {
            new 
Float:XFloat:YFloat:Z;
            
//GetPlayerName(playerid,plname,sizeof(plname));
            //GetPlayerName(id,idname,sizeof(idname));
            
GetPlayerPos(playeridXYZ);
            
SetPlayerPos(idXYZ);
    } return 
1;

Reply


Messages In This Thread
new pName[MAX_PLAYER_NAME]; - by cruising - 12.10.2011, 23:13
Re: new pName[MAX_PLAYER_NAME]; - by grand.Theft.Otto - 12.10.2011, 23:20
Re: new pName[MAX_PLAYER_NAME]; - by cruising - 12.10.2011, 23:23
Re: new pName[MAX_PLAYER_NAME]; - by Kush - 12.10.2011, 23:28
Re: new pName[MAX_PLAYER_NAME]; - by cruising - 12.10.2011, 23:35
Re: new pName[MAX_PLAYER_NAME]; - by Kush - 12.10.2011, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)