SA-MP Forums Archive
Help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me (/showthread.php?tid=234320)



Help me - wheelman_WM - 03.03.2011

Код:
    if(strcmp(cmdtext,"/citydrift",true)==0)
	{
	SetCameraBehindPlayer(playerid);
	//DynUpdateStart(playerid); // Avoid falling through object's
	SetPlayerArmour(playerid,0);
	ResetPlayerWeapons(playerid);
	new vehicleid = GetPlayerVehicleID(playerid);
	new State = GetPlayerState(playerid);
	if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
	{
	GameTextForPlayer(playerid,"~r~CityDrift",4000,6);
	LinkVehicleToInterior(vehicleid,0);
	SetPlayerInterior(playerid,0);
	return SetVehiclePos(vehicleid,-2202.8438,-4165.2114,16.4755);
	}
	SetPlayerPos(playerid,-2202.8438,-4165.2114,16.4755);
	SetPlayerInterior(playerid,0);
    SendClientMessage(playerid,0x00FF00FF,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
	SendClientMessage(playerid,0x00FF00FF,"~.:In'N'Out Of City Drift:.~");
    new name[MAX_PLAYER_NAME];
    new msg[256];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
	format(msg,sizeof(msg),"%s [%i] has teleported to In'N'Out Of City Drift!~[/citydrift]",name,playerid);
	SendClientMessageToAll(0xFFFF00FF,msg);
	return 1;
	}
	return 0;
}


I want that when i do /citydrift it teleports me and show me the box same like this and on which i click i get the car




Re: Help me - wheelman_WM - 03.03.2011

Plz anyone help me Fast