pawn Код:
MD:pm(playerid, params[])
{
new str[256], str2[256], id, Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
if(sscanf(params, "us[512]", id, str2))
{
SendClientMessage(playerid, 0xFF0000FF, "{FF0000}[USAGE]: {FFFFFF}/PM (PlayerID) (Message)");
return 1;
}
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000FF, "{FF0000}[SERVER]: {FFFFFF}Player Is Not Connected!");
if(playerid == id) return SendClientMessage(playerid, 0xFF0000FF, "{FF0000}[USAGE]: {FFFFFF}You Cannot PM Yourself!");
{
GetPlayerName(playerid, Name1, sizeof(Name1));
GetPlayerName(id, Name2, sizeof(Name2));
format(str, sizeof(str), ">> PM To %s(ID %d): %s", Name2, id, str2);
SendClientMessage(playerid, 0xFF0000FF, str);
format(str, sizeof(str), ">> PM From %s(ID %d): %s", Name1, playerid, str2);
SendClientMessage(id, 0xFF0000FF, str);
}
return 1;
}
pawn Код:
CMD:teleports(playerid, params[])
{
new string[1000];
strcat(string, "\n{00FFFF}======== -( Drifts )- ========\n{FFFF00}- /drifthill\n- /drift1-[53]\n- /prodrift\n- /circle1-[8]\n- /oceandrift\n{00FFFF}======== -( Cities )- ========\n{FFFF00}- /sf\n- /ls\n- /lv");
strcat(string, "\n{00FFFF}======== -( Airports )- ========\n{FFFF00}- /lsa\n- /lva\n- /sfa\n{00FFFF}======== -( Races )- ========\n{FFFF00}- /drag\n");
strcat(string, "{00FFFF}======== -( Parkour )- ========\n{FFFF00}- /nrgparkour\n{00FFFF}======== -( Stunts )- ========\n{FFFF00}- /stuntpark\n- /halfpipe\n{00FFFF}======== -( Tuning )- ========\n{FFFF00}- /arch\n- /fender\n- /loco");
ShowPlayerDialog(playerid, 27, DIALOG_STYLE_MSGBOX, "Server Teleports", string, "Okay", "");
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
return 1;
}
I dont see where your coming from, Heres one of my sscanf commands. If you can tell me whats wrong here .. Please.
P.S - Please bro, Please i beg u add me on skype i have some Scripting questions, Please. dario_keic