commandtext....
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
 {
  if(!strcmp(cmdtext,"/fix",true))
  {
    if(IsPlayerAdmin(playerid) && IsPlayerInAnyVehicle(playerid))
    {
      SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
    }
    else
    {
      SendClientMessage(playerid,COLOR_CRED,"You must be an administrator AND be inside a vehicle to use this command.");
    }
    return 1;
  }
  if(!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid,252.8745,-92.3390,3.5354))
  {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,262.1704,-84.3840,65.1329);
    CreatePickup(1239,2,252.8745,-92.3390,3.5354);
    return 1;
  }
  if(!strcmp("/Exit", cmdtext, true) && PlayerToPoint(1.5 ,playerid,262.1704,-84.3840,65.1329))
 {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,252.8745,-92.3390,3.5354);
    return 1;
 }
 return 0;
}
Reply


Messages In This Thread
commandtext.... - by thuron - 04.03.2009, 20:12
Re: commandtext.... - by ICECOLDKILLAK8 - 04.03.2009, 20:13
Re: commandtext.... - by Rks25 - 04.03.2009, 20:33
Re: commandtext.... - by thuron - 05.03.2009, 12:23
Re: commandtext.... - by [RP]Rav - 05.03.2009, 12:25
Re: commandtext.... - by thuron - 05.03.2009, 12:32

Forum Jump:


Users browsing this thread: 4 Guest(s)