Please Help with some misunderstanding of CMD's.
#10

• You have created a verb and used it on the some purpose you wanted for 'id' without settling it previously - resulted in respawning first logged player(ID: 0) which was a apperantly you.
• Instead of defining the verbal 'str_' with 128 and wasting multiple cells, next time just calculate the string's and the one who respawns the player.

- So yeah, that's pretty much it. Feel free to contact me if you need furture assistance:

PHP код:
CMD:respawn(playeridparams[])
{
    new 
idtargetidPlayerName[24], str_[62];
    
GetPlayerName(playeridPlayerName24);
    if(
sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED1,"[ ! ] USAGE: /respawn [playerid]");
    
format(str_62), "[ ! ] %s has respawned you !"PlayerName);
    
SendClientMessage(idCOLOR_RED1str_);
    
SetPlayerPos(id1721.9911,-1608.1677,13.5469);
    return 
SetPlayerInterior(id0);

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)