Help with /to & /get
#1

This is my /to and /get commands:
Код:
		if(!strcmp(cmdtext, "/to", true,3))
		{
    		if(cmdtext[3]==0){SendClientMessage(playerid, BLUE, "* Keliauti pas (be masinos): /to [dalis vardo]"); return 1;}
    		new vardas[MAX_PLAYER_NAME];
 			strmid(vardas,cmdtext[4],0,MAX_PLAYER_NAME);
 			new id = GetPlayeridMid(vardas);
 			if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, RED, "* Tokio zaidejo nera"); return 1;}
 			if (GetPlayerVirtualWorld(id)>0){SendClientMessage(playerid, RED, "* Zaidejas savo namuose, isibrauti negrazu"); return 1;}
			SetPlayerInterior(playerid,GetPlayerInterior(id));
			new Float:tempcoo[3];
 			GetPlayerPos(id,tempcoo[0],tempcoo[1],tempcoo[2]);
   			 SetPlayerPos(playerid,tempcoo[0],tempcoo[1],tempcoo[2]);
 			SetCameraBehindPlayer(playerid);
    		return 1;
  		}

    	if(!strcmp(cmdtext, "/get", true,4))
		{
    		if(cmdtext[4]==0){SendClientMessage(playerid, BLUE, "* Gauti zaideja: /get [dalis vardo]"); return 1;}
    		new vardas[MAX_PLAYER_NAME];
 			strmid(vardas,cmdtext[5],0,MAX_PLAYER_NAME);
 			new id = GetPlayeridMid(vardas);
 			if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, RED, "* Tokio zaidejo nera"); return 1;}
 			if (GetPlayerVirtualWorld(playerid)>0){SendClientMessage(playerid, RED, "* Tu namuose, pakviesk zaidejus.. nekilnok ju"); return 1;}
 			if (playerDB[id][ikalintas]) {SendClientMessage(playerid, RED, "* Zaidejas kalejime."); return 1;}
			SetPlayerInterior(id,GetPlayerInterior(playerid));
			new Float:tempcoo[3];
 			GetPlayerPos(playerid,tempcoo[0],tempcoo[1],tempcoo[2]);
 			SetPlayerPos(id,tempcoo[0],tempcoo[1],tempcoo[2]);
 			SetCameraBehindPlayer(id);
    		return 1;
		}
What i need to change that player Teleport's with Vehicle?
(please write codes)
Reply


Messages In This Thread
Help with /to & /get - by soulas85 - 02.08.2010, 09:33
Re: Help with /to & /get - by Finn - 02.08.2010, 09:48
Re: Help with /to & /get - by [MWR]Blood - 02.08.2010, 09:49
Re: Help with /to & /get - by soulas85 - 02.08.2010, 10:34
Re: Help with /to & /get - by soulas85 - 02.08.2010, 13:37
Re: Help with /to & /get - by Finn - 03.08.2010, 09:10
Re: Help with /to & /get - by KennethRandall - 03.08.2010, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)