SA-MP Forums Archive
I need a bit of help with this script - 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: I need a bit of help with this script (/showthread.php?tid=94676)



I need a bit of help with this script - braduz - 31.08.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/mehlop", true)==0)
{
 new vehicleid = GetPlayerVehicleID(playerid);
 new State = GetPlayerState(playerid);
 if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
 {
  return SetVehiclePos(vehicleid,1708.5780,1606.8759,10.0156),
  GameTextForPlayer(playerid, "~r~Welcome to the wolvez base wolf!", 5000, 5);
 }
 SetPlayerPos(playerid,1708.5780,1606.8759,10.0156);
 GameTextForPlayer(playerid, "~r~Welcome to the wolvez base wolf!", 5000, 5);
return 1;
}
}
when the person teleports there how do i make his color red?


Re: I need a bit of help with this script - .::: Ecko :::. - 31.08.2009

Under the teleport:
SetPlayerColor(playerid,0xE60000FF);

Ecko


Re: I need a bit of help with this script - braduz - 31.08.2009

Quote:
Originally Posted by .::: Ecko :::.
Under the teleport:
SetPlayerColor(playerid,0xE60000FF);

Ecko
Thanks!