25.11.2011, 23:57
pawn Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("conce");
AddPlayerClass(0, -2048.0999, -84.5000, 35.0000, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, -2065.2861,-81.7028,35.1641, 3.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/comprarbullet", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(3.0, playerid, -2065.2861,-81.7028,35.1641))
{
ShopCar[playerid] = CreateVehicle(541,-2047.09997559,-84.50000000,35.00000000,0.00000000,-1,-1,15); //Bullet
PutPlayerInVehicle(playerid, ShopCar[playerid], 0);
SendClientMessage(playerid, COLOR_GREY, "Voce comprou um Bullet");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Voce na esta na Concecionaria");
}
return 1;
}
return 1;// Sу mudar pra 1 ^^
}