in / dm remain how to ?
#3

pawn Код:
if(!strcmp(cmdtext,"/dm", true))
{
    // stuff here ..
    SetPVarInt(playerid, "IsDM", 1);
}

if(!strcmp(cmdtext,"/exit", true))
{
    // stuff here ..
    SetPVarInt(playerid, "IsDM", 0);
}

public OnPlayerSpawn(playerid)
{
    if(GetPVarInt(playerid, "IsDM") == 1)
    {
      // Warp him back to the DM zone
      SetPlayerPos(playerid, x_to_dm, y_to_dm, z_to_dm);
    }
}
Reply


Messages In This Thread
in / dm remain how to ? - by RobShakur - 23.05.2010, 11:55
Re: in / dm remain how to ? - by Hiddos - 23.05.2010, 11:59
Re: in / dm remain how to ? - by woot - 23.05.2010, 11:59
Re: in / dm remain how to ? - by Think - 23.05.2010, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)