05.11.2011, 16:39
I wanna try create tennis fs.The tool (weapon) would be baseball bat.And to bounce ball use the beach ball.So how do i start? Which lines to edit? Need pawn code to get started
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/playtennis", cmdtext, true, 10) == 0)
{
//Set the position of the tennis field
SetPlayerPos(playerid, positionhere);
//Gives the player a bb bat
GivePlayerWeapon(playerid, 5, 1);
return 1;
}