19.09.2010, 11:27
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/work", cmdtext, true, 10) == 0)
{
new rand = random(3); // make this as high as you want.. depends on how much missions you want.
if(rand == 0)
{
SendClientMessage(playerid, 0xFFFF00AA,"You are delivering Waste from Los Santos Airport to Landfill");
SetPlayerCheckpoint(playerid, -694.9723, -1906.2748, 11.6886, 10.0);
{
else if(rand == 1)
{
//other stuff here
}
else if(rand == 2)
{
// any other stuff here
}
return 1;
}
return 0;
}