24.09.2008, 20:08
One more thing,sorry I know I'm a noob.
How would I get the players name?
Like so I could use it in a message.
How would I get the players name?
Like so I could use it in a message.
for(new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerNameIs(i, CarNameOwner[vehicleID]))
{
new Owner[24];
GetPlayerName(i,Owner, 25);
SendClientMessage(playerid,COLOR_YELLOW,"This vehicle has been purchased from AutoBahn. You are not the owner");
format(string, sizeof(string), "This vehicle is registered to %s(%d)",Owner,i);
SendClientMessage(playerid, COLOR_YELLOW, string);
and 2) I could need some help.. and I`m not that good scripter
, here's what: I've got 1 case:
case 18:
{
if(PlayerNameStartsWith(playerid, "[ABK]"))
{
GameTextForPlayer(playerid, "~w~bla bla", 500, 3);
SetPlayerPos(playerid,bla bla);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerCameraPos(playerid,bla bla;
SetPlayerCameraLookAt(playerid,bla bla);
SetPlayerInterior(playerid,0);
ApplyAnimation(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0);
TextDrawShowForPlayer(playerid,etc);
TextDrawHideForPlayer(playerid,etc);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Only [ABK]members are allowed to use this...");
Kick(playerid);
}
}

::
|
Originally Posted by =>Sandra<=
You mean something like this:
Код:
case 18:
{
if(PlayerNameStartsWith(playerid, "[ABK]"))
{
GameTextForPlayer(playerid, "~w~bla bla", 500, 3);
SetPlayerPos(playerid,bla bla);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerCameraPos(playerid,bla bla;
SetPlayerCameraLookAt(playerid,bla bla);
SetPlayerInterior(playerid,0);
ApplyAnimation(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0);
TextDrawShowForPlayer(playerid,etc);
TextDrawHideForPlayer(playerid,etc);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Only [ABK]members are allowed to use this...");
Kick(playerid);
}
}
|

|
Originally Posted by [ABK
iker ]
lol you dont need to do triple++ post ![]() |



|
Originally Posted by =>Sandra<=
"Sandra19[NL]" will become "]NL[91ardnaS"
|