Please help me its urgent
#1

hello sir i need help in small scripting!

when we do /sfa then we teleported to sfa but i want a message to be shown on main chat like this riftpeat(0): has teleported to /sfa
where Driftpeat(0) must be in playercolor and has teleported to /sfa be in white color can u tell me the code
Reply
#2

Simply add this on your command :-
pawn Code:
new string[200];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{%06x}%s(%d){FFFFFF}: has teleported to /sfa", (GetPlayerColor(playerid) >>> 8), pName, playerid);
SendClientMessageToAll(-1, string);
Reply
#3

their is some problem with this command

when player do /sfa then its showing player colour Black instead of its actual colour ??
Reply
#4

Are you trying to copy my Style PrinXe? You are ridiculous.
Reply
#5

Quote:
Originally Posted by PrinXe
View Post
their is some problem with this command

when player do /sfa then its showing player colour Black instead of its actual colour ??
https://sampwiki.blast.hk/wiki/GetPlayerColor

Quote:
Originally Posted by <!> Important Note
GetPlayerColor will return nothing (0)* unless SetPlayerColor has been used first.
Click HERE for a fix.
* 0 is black colour.
Reply
#6

hmm sorry i was not copying your style just learning scripting because you style is easy too understand sorry for that.. i will not copy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)