Jump to content

návod Warpy V Pawnu


Ghosts.Crack

Recommended Posts

Ahoj dělám si vlástní mód a chtěl bych se na něco zeptat.Když se třeba odwarpuji na /letistelv tak bych si přál aby se napsalo Hráč NĚKDO se odwarpoval na Letiště do LV ale nevím jak udělat aby to šlo..

Děkuji za odpovědi :))

Link to comment
Share on other sites

new string[100];
format(string,sizeof(string),"Hráč %s se odwarpoval na letiště LV!",PlayerName(playerid);
SendClientMessageToAll(playerid, string);

stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name,sizeof(name));
return name;
}

 

Btw. Jak tak koukám radši se na ten mod vy*er...

Link to comment
Share on other sites

do OnPlayerCommandText vlož:

if (strcmp("/prikaz", cmdtext, true, 10) == 0)
{
new str[128];
format(str,128,"Hráč %s se odwarpoval !",PlayerName(playerid);
SendClientMessageToAll(playerid, str);
SetPlayerPos(playerid,x,y,z); // doplň súradnice
return 1;
}

potom mimo všetky public vlož:

 

stock PlayerName(playerid){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name,sizeof(name));
return name;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...