question
#1

Hello i was wondering if this command would work i made it on my comp without samp installed so idk its supposed to check the person who types in the command in their ping its a silly cmd but i need someone to test it here it is :
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ping", cmdtext, true, 10) == 0)
    {
GetPlayerPing(playerid);

SendClientMessage(playerid, 0, "Your Ping Is %d");
}
    return true;
 }
help me and if this dosent work send back a working one please!!!
thanks! Crodox RP A.K.A Cody Beer
Reply
#2

pawn Код:
if (strcmp("/ping", cmdtext, true, 10) == 0)
{
    new string[20];
    format(string, sizeof(string), "Your Ping Is %d", GetPlayerPing(playerid));
    SendClientMessage(playerid, YOUR_COLOR_NAME, string);
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)