[Help] Command's
#7

Quote:
Originally Posted by adsy
this is a way i use if i get confused sometimes:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
//#####################
  if(!strcmp(cmdtext, "/home")) {
    if(IsPlayerInAnyVehicle(playerid)) {
      SetVehiclePos(GetPlayerVehicleID(playerid), 673.6246, 1732.0582, 6.9922);
    }
    else {
      SetPlayerPos(playerid, 673.6246, 1732.0582, 6.9922);
    }
    return 1;
  }
//#####################
  if(!strcmp(cmdtext, "/drift")) {
    if(IsPlayerInAnyVehicle(playerid)) {
      SetVehiclePos(GetPlayerVehicleID(playerid), -329.7016, 1536.6998, 76.6117);
    }
    else {
      SetPlayerPos(playerid, -329.7016, 1536.6998, 76.6117);
    }
    return 1;
  }
//#####################
  return 0;
}

//#####################
hmm Thnx, i will make 3rd tele, can u look then if its good?
Reply


Messages In This Thread
[Help] Command's - by dclaw - 21.02.2010, 10:36
Re: [Help] Command's - by adsy - 21.02.2010, 10:38
Re: [Help] Command's - by dclaw - 21.02.2010, 10:39
Re: [Help] Command's - by adsy - 21.02.2010, 10:40
Re: [Help] Command's - by dclaw - 21.02.2010, 10:41
Re: [Help] Command's - by adsy - 21.02.2010, 10:43
Re: [Help] Command's - by dclaw - 21.02.2010, 10:47
Re: [Help] Command's - by adsy - 21.02.2010, 10:48
Re: [Help] Command's - by dclaw - 21.02.2010, 10:53
Re: [Help] Command's - by adsy - 21.02.2010, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)