help stock
#1

pawn Код:
stock Teleport(playerid)
{
new Mensaje = random(7);
switch(Mensaje)
{
case 0: format(string, sizeof(string), "{E6E6FA}*%s se teletransporto a %s (/%s)!");
case 1: format(string, sizeof(string), "{F0E68C}*%s se teletransporto a %s (/%s)!");
case 2: format(string, sizeof(string), "{98FB98}*%s se teletransporto a %s (/%s)!");
case 3: format(string, sizeof(string), "{F0FFF0}*%s se teletransporto a %s (/%s)!");
case 4: format(string, sizeof(string), "{B0E0E6}*%s se teletransporto a %s (/%s)!");
case 5: format(string, sizeof(string), "{B0C4DE}*%s se teletransporto a %s (/%s)!");
case 6: format(string, sizeof(string), "{FAEBD7}*%s se teletransporto a %s (/%s)!");
}
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}
How do i do? For that the fine use this function anywhere:

pawn Код:
Teleport(playerid, Nick,"San Fierro","sf")
Help, thank you....
Reply
#2

for that u need to add coords of place along with its name in a enum
Reply
#3

pawn Код:
stock Teleport(playerid, telename[], teleshort)
{
new string[128], playername[24];
GetPlayerName(playerid,playername);
format(string, sizeof(string), "{E6E6FA}*%s se teletransporto a %s (/%s)!", playername, telename, teleshort);
SendClientMessageToAll( -1, string ); // replace -1 by color you want
}
Quote:
Originally Posted by BroZeus
Посмотреть сообщение
for that u need to add coords of place along with its name in a enum
No he dont need it..
i mean look at his purpose he is trying to make it like Teleport(playerid,"Sanfierro", "sf"); and probably he is gonna use it in some command or otherway.
Reply


Forum Jump:


Users browsing this thread: