24.01.2017, 17:04
PHP код:
//Method 1:
CMD:score(playerid)
{
new string[23];
format(string,sizeof(string),"You Score Is : %d.",GetPlayerScore(playerid)); //The '%d' cpoesifire will be replaces by whoever the GetPlayerScore Function returns, which obviousely going to be the player's score,
SendClientMessage(playerid,COLOR_GREEN,string); //This will display the message above in green to the player who typed the commands
return 1;
}
//Method 2:
CMD:score(playerid)
{
new string[23], score = GetPlayerScore(playerid);
format(string,sizeof(string),"You Score Is : %d.",score); //The '%d' cpoesifire will be replaces by whoever the GetPlayerScore Function returns, which obviousely going to be the player's score,
SendClientMessage(playerid,COLOR_GREEN,string); //This will display the message above in green to the player who typed the commands
return 1;
}