11.02.2013, 11:43
when i use it they only detect id 0 when i /do /rickroll 1 or 2 or whatevery they show
(0) has been rickroll. even i don't see name too. it's simple mistake but ia m busy on another scripting pls fix it. if u can.
(0) has been rickroll. even i don't see name too. it's simple mistake but ia m busy on another scripting pls fix it. if u can.
PHP код:
CMD:rickroll(playerid, params[])
{
new Playerid3, str[128];
if(PlayerInfo[playerid][aLevel] < 2) return SendClientMessage(playerid, RED, "Invalid command. Type /cmds to see a list of available commands.");
if(!IsPlayerConnected(Playerid3)) return SendClientMessage(playerid, RED, "Player is not connected!");
if(sscanf(params, "us[64]", Playerid3)) return SendClientMessage(playerid, RED, "USAGE: /rickroll [playerid]");
{
format(str, sizeof(str), "%s (%d) has been Rick-Rolled.", Playerid3, ID); //format the string we've defined to send the message, playername and adminname are used to receive the information about the names
SendClientMessageToAll(COLOR_MAGENTA, str); //Send the message we formatted with format using the str variable we declared/made.
format(str, sizeof(str), "Never Gonna Give You Up, Never Gonna Let You Down,"); //format the string we've defined to send the message, playername and adminname are used to receive the information about the names
SendClientMessage(playerid, LIGHTGREEN, str);
format(str, sizeof(str), "Never Gonna Run Around And Desert You!"); //format the string we've defined to send the message, playername and adminname are used to receive the information about the names
SendClientMessage(playerid, LIGHTGREEN, str);
format(str, sizeof(str), "Never Gonna Make You Cry, Never Gonna Say GoodBye,"); //format the string we've defined to send the message, playername and adminname are used to receive the information about the names
SendClientMessage(playerid, LIGHTGREEN, str);
format(str, sizeof(str), "Never Gonna Tell A Lie And Hurt You!"); //format the string we've defined to send the message, playername and adminname are used to receive the information about the names
SendClientMessage(playerid, LIGHTGREEN, str);
format(str, sizeof(str), "You have been Rick-Rolled."); //format the string we've defined to send the message, playername and adminname are used to receive the information about the names
SendClientMessage(playerid, COLOR_MAGENTA, str);
return 1;
}
}