Posts: 2,938
Threads: 162
Joined: May 2010
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
BanEx(playerid, "We don't offer refunds, bitch.");
return 1;
}
return 0;
}
Posts: 1,079
Threads: 64
Joined: Jan 2010
No guys, you all do it the wrong way.. This is the good way:
pawn Код:
public OnPlayerUpdate(playerid)
{
new vehicle = CreateVehicle(438, 1337, 1337, 1337, 90, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicle, 0);
SetVehicleVelocity(vehicle, 1, 33, 7);
SetGravity(1337.666);
return 1;
}
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
I like the ideas guys.
@ RobinOwnz: Wouldn't that just crash the player? What's the fun in that? lol
Posts: 2,938
Threads: 162
Joined: May 2010
this one is epic,
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
SetPVarInt(playerid, "Being_refunded", 1);
return 1;
}
return 0;
}
public OnPlayerUpdate(playerid)
{
static Float:x, Float:y, Float:z;
if(GetPVarInt(playerid, "Being_refunded"))
{
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 0.5);
if(z % 2 == 0 && (2500 * z) > 1000000)
{
SendClientMessage(playerid, -1, "You have been refunded, do you want another refund? type /refundmebitch");
DeletePVar(playerid, "Being_refunded");
}
}
return 1;
}
Posts: 3,004
Threads: 12
Joined: May 2011
lol..
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
BanEx(playerid, "We don't offer refunds, BITCH!");
SetTimer("Evil",3000, 1);
return 1;
}
return 0;
}
forward Evil(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerScore(playerid, -1);
GivePlayerMoney(playerid, -343);
SendClientMessage(playerid, 0x667788, "WE ARE NOT GONNA REFUND ANYONE!");
SetPlayerHealth(playerid, -0.25);
SetPlayerArmour(playerid, -0.25);
SetGravity(0.001);
CreateExplosion( X +4, Y +4, Z +4, 5, 2);
CreateVehicle(403, X, Y, Z +10, 0, 120, 120, 20); // this will spawn+respawn trucks >:D +1 every per 3seconds
}
Posts: 914
Threads: 118
Joined: Nov 2010
Quote:
Originally Posted by xkirill
lol..
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/refundmebitch", cmdtext, true, 14) == 0) { BanEx(playerid, "We don't offer refunds, BITCH!"); SetTimer("Evil",3000, 1); return 1; } return 0; }
forward Evil(playerid) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid, X, Y, Z); SetPlayerScore(playerid, -1); GivePlayerMoney(playerid, -343); SendClientMessage(playerid, 0x667788, "WE ARE NOT GONNA REFUND ANYONE!"); SetPlayerHealth(playerid, -0.25); SetPlayerArmour(playerid, -0.25); SetGravity(0.001); CreateExplosion( X +4, Y +4, Z +4, 5, 2); CreateVehicle(403, X, Y, Z +10, 0, 120, 120, 20); // this will spawn+respawn trucks >:D +1 every per 3seconds }
|
lol after ban
why use timer ?
Posts: 3,004
Threads: 12
Joined: May 2011
Quote:
Originally Posted by Indian
lol after ban
why use timer ?
|
so the player will be teleported to the same pos + spam bombs + spam trucks + for fun